package com.tencreat.service.pt;

import com.baomidou.mybatisplus.extension.service.IService;
import com.tencreat.common.core.domain.model.ReqIdParam;
import com.tencreat.common.core.domain.model.ReqIdsParam;
import com.tencreat.domain.pt.MallPtCashVoucher;

import java.util.List;

/**
 * 现金卷Service接口
 *
 * @author tencreat
 * @date 2021-11-08
 */
public interface IMallPtCashVoucherService  extends IService<MallPtCashVoucher> {
    /**
     * 查询现金卷
     *
     * @param id 现金卷ID
     * @return 现金卷
     */
    public MallPtCashVoucher selectMallPtCashVoucherById(ReqIdParam id);

    /**
     * 查询现金卷列表
     *
     * @param mallPtCashVoucher 现金卷
     * @return 现金卷集合
     */
    public List<MallPtCashVoucher> selectMallPtCashVoucherList(MallPtCashVoucher mallPtCashVoucher);

    /**
     * 新增现金卷
     *
     * @param mallPtCashVoucher 现金卷
     * @return 结果
     */
    public int insertMallPtCashVoucher(MallPtCashVoucher mallPtCashVoucher);

    /**
     * 修改现金卷
     *
     * @param mallPtCashVoucher 现金卷
     * @return 结果
     */
    public int updateMallPtCashVoucher(MallPtCashVoucher mallPtCashVoucher);

    /**
     * 批量删除现金卷
     *
     * @param ids 需要删除的现金卷ID
     * @return 结果
     */
    public int deleteMallPtCashVoucherByIds(ReqIdsParam ids);

    /**
     * 删除现金卷信息
     *
     * @param id 现金卷ID
     * @return 结果
     */
    public int deleteMallPtCashVoucherById(ReqIdParam id);
}
